package com.muyu.danmo.service;

import com.muyu.system.domain.dto.*;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.Map;

/**
 * @author Administrator
 */
public interface OrderFunctionService {


    /**
     * 取消订单
     * @param cancelOrderDTO
     */
    void cancelOrder(CancelOrderDTO cancelOrderDTO);


    /**
     * 修改订单地址
     * @param updateAddressDTO
     */
    void updateAddress(UpdateAddressDTO updateAddressDTO);

    /**
     * 订单取消并且退款
     * @param cancelRefundDTO
     */
    void cancelRefund(CancelRefundDTO cancelRefundDTO);


    /**
     * 确认发货
     * @param confirmShipmentDTO
     */
    void confirmShipment(ConfirmShipmentDTO confirmShipmentDTO);


    /**
     * 查询快递信息
     * @param expressDTO
     * @return
     */
    Object express(ExpressDTO expressDTO);


    /**
     * 确认收货
     * @param receivingDTO
     */
    void receiving(ReceivingDTO receivingDTO);


    /**
     * 评价
     * @param evaluationDTO
     */
    void evaluation(EvaluationDTO evaluationDTO);


    /**
     * 订单转换
     */
    void orderStatusConversion();

    /**
     * 删除订单
     * @param deleteOrderDTO
     */
    void deleteOrder(DeleteOrderDTO deleteOrderDTO);


    /**
     * 关闭订单
     * @param closeOrderDTO
     */
    void closeOrder(CloseOrderDTO closeOrderDTO);

}
